#ifndef ADDGROUP_H
#define ADDGROUP_H

#include <QWidget>
#include <QHostInfo>
#include <QMessageBox>
#include <QTcpSocket>
#include <QListWidgetItem>
namespace Ui {
class Addgroup;
}

class Addgroup : public QWidget
{
    Q_OBJECT

public:
    explicit Addgroup(QString uName,QWidget *parent = nullptr);
    ~Addgroup();
    QTcpSocket *tcpClient;
    qint16 port;
    QString getLocalIP();
    QString uName;//当前用户名
private slots:
    void on_submit_pushButton_clicked();
    void processPendingDatagrams();
    void on_availgroup_listWidget_itemClicked(QListWidgetItem *item);

    void on_refresh_pushButton_clicked();

private:
    Ui::Addgroup *ui;
};

#endif // ADDGROUP_H
